package net.xiduth.events;

import net.xiduth.game.player.Player;

/**
 * The interface of a button's event
 * 
 * @author Tyluur <ItsTyluur@Gmail.com>
 * @since July 22nd, 2012
 */
public interface ButtonEvent {

	/**
	 * Initializes the event.
	 */
	public boolean init();
	
	/**
	 * Handles an action button.
	 * @param player The player.
	 * @param opcode The opcode.
	 * @param interfaceId The interface id.
	 * @param buttonId The button id.
	 * @param itemId The item id.
	 * @param slot The item slot.
	 * @return {@code True} if succesful.
	 */
	public boolean handle(Player player, int interfaceId, int buttonId, int packetId, int slotId, int slotId2);
	
}